package com.jzr.bedside.utils

import com.inuker.bluetooth.library.BluetoothClient
import com.jzr.bedside.base.BaseApplication

object BluetoothUtil {


    var mClient: BluetoothClient? = null

    fun getClient(): BluetoothClient {
        if (mClient == null) {
            synchronized(BluetoothUtil::class) {
                if (mClient == null) {
                    mClient = BluetoothClient(BaseApplication.getContext());
                }
            }
            return mClient!!
        } else {
            return mClient!!
        }

    }

}